#include<gflags/gflags.h>
#include<iostream>

DEFINE_string(ip,"127.0.0.1","这是服务器的默认监听IP地址");

DEFINE_int32(port,8080,"这是服务器的默认监听端口");

DEFINE_bool(debug_enable,false,"释放启用调试模式，默认不启用");
int main(int argc,char*argv[]){
    google::ParseCommandLineFlags(&argc, &argv, true);
    std::cout<<FLAGS_ip<<std::endl;
    std::cout<<FLAGS_port<<std::endl;
    std::cout<<FLAGS_debug_enable<<std::endl;
    return 0;
}